import 'package:xin_nuo_pda/bean/version_entity.dart';

versionEntityFromJson(VersionEntity data, Map<String, dynamic> json) {
	if (json['version'] != null) {
		data.version = json['version'].toString();
	}
	if (json['currentVersion'] != null) {
		data.currentVersion = json['currentVersion'].toString();
	}
	if (json['downUrl'] != null) {
		data.downUrl = json['downUrl'].toString();
	}
	if (json['desc'] != null) {
		data.desc = json['desc'].toString();
	}
	if (json['apkName'] != null) {
		data.apkName = json['apkName'].toString();
	}
	return data;
}

Map<String, dynamic> versionEntityToJson(VersionEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['version'] = entity.version;
	data['currentVersion'] = entity.currentVersion;
	data['downUrl'] = entity.downUrl;
	data['desc'] = entity.desc;
	data['apkName'] = entity.apkName;
	return data;
}